package homework.clazz.Demo5;

public class Circle extends Shape
{
    private final double PI = 3.14;
    private double radius;

    public Circle(String shapeName, double r)
    {
        super(shapeName);

    radius=r;
    }
public double getArea()//实现抽象方法
 {
return PI*radius*radius;
}
public double getLength() //实现抽象方法
{
    return 2*PI*radius;
}
}
